package com.qst.crop.demo.mapper;


import com.qst.crop.demo.entity.Product;
import com.qst.crop.demo.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper {

    int updateQua(long productId, String ownerEmail);

    int updateQua2(long productId, String ownerEmail);

    int updatePri(double totalPrice, long productId, String ownerEmail);

    int add(ShoppingCart shoppingCart);

    int del(long productId, String ownerEmail);

    List<ShoppingCart> getAll(String ownerEmail);

    long getQua(long productId, String ownerEmail);
}
